Skip to content

Conversation

@Alustrat-gg
Copy link
Contributor

@Alustrat-gg Alustrat-gg commented Nov 17, 2025

The provided Schemas for those parameter classes did not mention the default pagination attributes. Therefore, even if they were passed in the class initialization, they were not passed to the URL.

Issue: COR-4373

@Alustrat-gg Alustrat-gg requested a review from a team as a code owner November 17, 2025 11:05
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.60%. Comparing base (0287061) to head (0e864a8).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #161   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files           5        5           
  Lines        1230     1230           
=======================================
  Hits         1176     1176           
  Misses         54       54           
Flag Coverage Δ
unittests 95.60% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alustrat-gg Alustrat-gg force-pushed the alustrat/COR-4373/fix_pagination_parameters branch from b9b389f to a969b01 Compare November 17, 2025 11:13
@Alustrat-gg Alustrat-gg reopened this Nov 26, 2025
@GitGuardian GitGuardian deleted a comment from linear bot Nov 26, 2025
Copy link
Collaborator

@agateau-gg agateau-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some debugging left-overs to remove and a changelog entry to add (see CONTRIBUTING.md for details on this).

Also, can you squash your commits?

@Alustrat-gg Alustrat-gg force-pushed the alustrat/COR-4373/fix_pagination_parameters branch 3 times, most recently from dd6eb9e to 92b4b8d Compare November 27, 2025 09:10
The Schema we were using for those classes was not mentioning default
pagination attributes so they were never rendered.

Issue: COR-4373
@Alustrat-gg Alustrat-gg force-pushed the alustrat/COR-4373/fix_pagination_parameters branch from 92b4b8d to 0e864a8 Compare November 27, 2025 09:28
- pygitguardian/1.18.0 (Darwin;py3.11.8)
method: GET
uri: https://api.gitguardian.com/v1/members?access_level=member
uri: https://api.gitguardian.com/v1/members?cursor=&per_page=20&access_level=member
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's weird that we have cursor still present even though exclude_none was specified in the schemas

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because the default value for this one is an empty string and not None

@agateau-gg agateau-gg merged commit a754c39 into master Nov 27, 2025
19 checks passed
@agateau-gg agateau-gg deleted the alustrat/COR-4373/fix_pagination_parameters branch November 27, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants